<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" >

<head>
    <meta charset="UTF-8">
    <title>首页</title>
</head>
<!--<javaScript th:type=""></javaScript>-->
<body>
<div >
    <div th:text="'你猜猜会显示'+${session.size()}+'!!!'"></div>
    <h1> Thyleaf in action </h1>
    <a href = "/users">首页</a>

    <table border="1">
        <thead>
        <tr>
            <td>ID</td>
            <td>链接</td>
            <td>名称</td>
        </tr>
        </thead>
        <tbody>
<!--        <p th:text="${fileList}"></p>-->
        <tr th:if="${fileList.size()} eq 0">
            <td colspan="3">没有用户信息！！</td>
        </tr>
        <tr th:each="file : ${fileList}">
            <td th:text="${file.id}">1</td>
            <td th:text="${file.file_url}">11</td>
            <td>
                <a href="view.html"
                   th:text="${file.file_name}">wss</a></td>
        </tr>
        </tbody>

    </table>
    <form th:action="@{'/api/index/uploadFile'}" method="post" enctype="multipart/form-data">
        <input type="file" name="file" >
        <input type="submit">

    </form>

</div>
</body>
<script>

</script>
</html>